package request

type TmallServicecenterServicestoreCreateservicestorecoverserviceRequest struct {
	/*
	   业务类型     */
	BizType *string `json:"biz_type" required:"true" `
	/*
	   json格式，在某个业务类型(biz_type)下类目和品牌的授权关系,比如空调授权了格力和美的，热水器授权了美的和林内，洗衣机和冰箱都授权了美的和松下     */
	CategoryIdsAndBrandIds *string `json:"category_ids_and_brand_ids" required:"true" `
	/*
	   serviceCodes列表,|分隔     */
	ServiceCodes *string `json:"service_codes" required:"true" `
	/*
	   网点编码     */
	ServiceStoreCode *string `json:"service_store_code" required:"true" `
}

func (s *TmallServicecenterServicestoreCreateservicestorecoverserviceRequest) SetBizType(v string) *TmallServicecenterServicestoreCreateservicestorecoverserviceRequest {
	s.BizType = &v
	return s
}
func (s *TmallServicecenterServicestoreCreateservicestorecoverserviceRequest) SetCategoryIdsAndBrandIds(v string) *TmallServicecenterServicestoreCreateservicestorecoverserviceRequest {
	s.CategoryIdsAndBrandIds = &v
	return s
}
func (s *TmallServicecenterServicestoreCreateservicestorecoverserviceRequest) SetServiceCodes(v string) *TmallServicecenterServicestoreCreateservicestorecoverserviceRequest {
	s.ServiceCodes = &v
	return s
}
func (s *TmallServicecenterServicestoreCreateservicestorecoverserviceRequest) SetServiceStoreCode(v string) *TmallServicecenterServicestoreCreateservicestorecoverserviceRequest {
	s.ServiceStoreCode = &v
	return s
}

func (req *TmallServicecenterServicestoreCreateservicestorecoverserviceRequest) ToMap() map[string]interface{} {
	paramMap := make(map[string]interface{})
	if req.BizType != nil {
		paramMap["biz_type"] = *req.BizType
	}
	if req.CategoryIdsAndBrandIds != nil {
		paramMap["category_ids_and_brand_ids"] = *req.CategoryIdsAndBrandIds
	}
	if req.ServiceCodes != nil {
		paramMap["service_codes"] = *req.ServiceCodes
	}
	if req.ServiceStoreCode != nil {
		paramMap["service_store_code"] = *req.ServiceStoreCode
	}
	return paramMap
}

func (req *TmallServicecenterServicestoreCreateservicestorecoverserviceRequest) ToFileMap() map[string]interface{} {
	fileMap := make(map[string]interface{})
	return fileMap
}
